<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>背景</title>
    <style>
        *{
            margin: 0px;
            padding: 0px;
        }
        div{
            width: 600px;
            height: 600px;
            border: 1px solid red;
            /* background-image: url(../image/1.jpg);
            background-size: 80% 80%;
            background-repeat: no-repeat;
            background-position: 50px 100px ; */

            /* 简写     “/”用于区分图片位置和图片尺寸*/
            background:url(../image/1.jpg) no-repeat 50px 100px / 80% 80%;
        }
        
    </style>
</head>
<body>
    <div>
       
    </div>
</body>
</html>